package com.app.utils.jst.paramBean;

import lombok.Builder;
import lombok.Singular;

import java.util.List;

@Builder
public class OrderParam {
    //店铺编号
    private int shop_id;
    //外部交易单号
    private String so_id;
    private String order_date;
    //订单状态
    private String shop_status;
    private String shop_buyer_id;
    private String receiver_state;
    private String receiver_city;
    private String receiver_district;
    private String receiver_address;
    private String receiver_name;
    private String receiver_phone;
    private float pay_amount;
    private float freight;
    @Singular
    private List<Item> items;
    private Pay pay;

    @Builder
    public static class Item{
        private String sku_id;
        private String shop_sku_id;
        private String shop_i_id;
        private String pic;
        private float amount;
        private float base_price;
        private int qty;
        private String name;
        private String refund_status;
        private String outer_oi_id;
    }

    @Builder
    public static class Pay{
        private String outer_pay_id;
        private String pay_date;
        private String payment;
        private String seller_account;
        private String buyer_account;
        private float amount;
    }
}
